Optimal. Leaf size=237 \[ -\frac {(c+3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 f (a+a \sin (e+f x))^2}-\frac {(c+3 d) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{3 a^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {(c+d) (c+2 d) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{3 a^2 f \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 237, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2844, 3057,
2831, 2742, 2740, 2734, 2732} \begin {gather*} -\frac {(c+3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 a^2 f (\sin (e+f x)+1)}+\frac {(c+d) (c+2 d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{3 a^2 f \sqrt {c+d \sin (e+f x)}}-\frac {(c+3 d) \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{3 a^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 f (a \sin (e+f x)+a)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2831
Rule 2844
Rule 3057
Rubi steps
\begin {align*} \int \frac {(c+d \sin (e+f x))^{3/2}}{(a+a \sin (e+f x))^2} \, dx &=-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 f (a+a \sin (e+f x))^2}-\frac {\int \frac {-\frac {1}{2} a \left (2 c^2+5 c d-d^2\right )-\frac {1}{2} a d (c+5 d) \sin (e+f x)}{(a+a \sin (e+f x)) \sqrt {c+d \sin (e+f x)}} \, dx}{3 a^2}\\ &=-\frac {(c+3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 f (a+a \sin (e+f x))^2}+\frac {\int \frac {a^2 (c-d) d^2-\frac {1}{2} a^2 (c-d) d (c+3 d) \sin (e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{3 a^4 (c-d)}\\ &=-\frac {(c+3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 f (a+a \sin (e+f x))^2}+\frac {((c+d) (c+2 d)) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{6 a^2}-\frac {(c+3 d) \int \sqrt {c+d \sin (e+f x)} \, dx}{6 a^2}\\ &=-\frac {(c+3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 f (a+a \sin (e+f x))^2}-\frac {\left ((c+3 d) \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{6 a^2 \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {\left ((c+d) (c+2 d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{6 a^2 \sqrt {c+d \sin (e+f x)}}\\ &=-\frac {(c+3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 f (a+a \sin (e+f x))^2}-\frac {(c+3 d) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{3 a^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {(c+d) (c+2 d) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{3 a^2 f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.71, size = 283, normalized size = 1.19 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \left (-((c+3 d) (c+d \sin (e+f x)))+\frac {\left (4 d \cos \left (\frac {1}{2} (e+f x)\right )-(c+3 d) \cos \left (\frac {3}{2} (e+f x)\right )+(3 c+5 d) \sin \left (\frac {1}{2} (e+f x)\right )\right ) (c+d \sin (e+f x))}{\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3}-2 d^2 F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}+(c+3 d) \left ((c+d) E\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )-c F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right )}{3 a^2 f (1+\sin (e+f x))^2 \sqrt {c+d \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1048\) vs.
\(2(283)=566\).
time = 18.48, size = 1049, normalized size = 4.43
method | result | size |
default | \(\text {Expression too large to display}\) | \(1049\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.17, size = 969, normalized size = 4.09 \begin {gather*} \frac {2 \, {\left (\sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - \sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right ) - {\left (\sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right ) + 2 \, \sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )}\right )} \sin \left (f x + e\right ) - 2 \, \sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )}\right )} \sqrt {i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right ) + 2 \, {\left (\sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right )^{2} - \sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right ) - {\left (\sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )} \cos \left (f x + e\right ) + 2 \, \sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )}\right )} \sin \left (f x + e\right ) - 2 \, \sqrt {2} {\left (c^{2} + 3 \, c d + 3 \, d^{2}\right )}\right )} \sqrt {-i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right ) + 3 \, {\left (\sqrt {2} {\left (i \, c d + 3 i \, d^{2}\right )} \cos \left (f x + e\right )^{2} + \sqrt {2} {\left (-i \, c d - 3 i \, d^{2}\right )} \cos \left (f x + e\right ) + {\left (\sqrt {2} {\left (-i \, c d - 3 i \, d^{2}\right )} \cos \left (f x + e\right ) + 2 \, \sqrt {2} {\left (-i \, c d - 3 i \, d^{2}\right )}\right )} \sin \left (f x + e\right ) + 2 \, \sqrt {2} {\left (-i \, c d - 3 i \, d^{2}\right )}\right )} \sqrt {i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right )\right ) + 3 \, {\left (\sqrt {2} {\left (-i \, c d - 3 i \, d^{2}\right )} \cos \left (f x + e\right )^{2} + \sqrt {2} {\left (i \, c d + 3 i \, d^{2}\right )} \cos \left (f x + e\right ) + {\left (\sqrt {2} {\left (i \, c d + 3 i \, d^{2}\right )} \cos \left (f x + e\right ) + 2 \, \sqrt {2} {\left (i \, c d + 3 i \, d^{2}\right )}\right )} \sin \left (f x + e\right ) + 2 \, \sqrt {2} {\left (i \, c d + 3 i \, d^{2}\right )}\right )} \sqrt {-i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right )\right ) + 6 \, {\left ({\left (c d + 3 \, d^{2}\right )} \cos \left (f x + e\right )^{2} + c d - d^{2} + 2 \, {\left (c d + d^{2}\right )} \cos \left (f x + e\right ) - {\left (c d - d^{2} - {\left (c d + 3 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {d \sin \left (f x + e\right ) + c}}{18 \, {\left (a^{2} d f \cos \left (f x + e\right )^{2} - a^{2} d f \cos \left (f x + e\right ) - 2 \, a^{2} d f - {\left (a^{2} d f \cos \left (f x + e\right ) + 2 \, a^{2} d f\right )} \sin \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {c \sqrt {c + d \sin {\left (e + f x \right )}}}{\sin ^{2}{\left (e + f x \right )} + 2 \sin {\left (e + f x \right )} + 1}\, dx + \int \frac {d \sqrt {c + d \sin {\left (e + f x \right )}} \sin {\left (e + f x \right )}}{\sin ^{2}{\left (e + f x \right )} + 2 \sin {\left (e + f x \right )} + 1}\, dx}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________